<?php
namespace App\Http\Middleware; use Closure; class CORS { public function handle($sp13451b, Closure $spce9b56) { if (config('app.debug')) { $spdcbcbb = array('Access-Control-Allow-Origin' => $sp13451b->header('Origin'), 'Access-Control-Allow-Methods' => 'POST, GET, OPTIONS, PUT, DELETE', 'Access-Control-Allow-Headers' => 'Content-Type, Accept, Authorization, Cookie, X-Requested-With, X-XSRF-TOKEN', 'Access-Control-Allow-Credentials' => 'true'); if ($sp13451b->isMethod('OPTIONS')) { return response()->make('', 200, $spdcbcbb); } $spfae0a4 = $spce9b56($sp13451b); foreach ($spdcbcbb as $spa3d2cf => $sp9d1f75) { $spfae0a4->headers->set($spa3d2cf, $sp9d1f75); } return $spfae0a4; } return $spce9b56($sp13451b); } }